﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Resto.CostControl.Core.Enums;

namespace Resto.CostControl.Core.Query.MaterialModule.ViewObject
{
    [Serializable]
    public class MaterialProcessVO
    {
        #region 基本属性

        public string ID { get; set; }

        /// <summary>
        /// 合同编号
        /// </summary>
        public string Code { get; set; }


        /// <summary>
        /// 加工日期
        /// </summary>
        public DateTime ProcessDate { get; set; }

        /// <summary>
        /// 加工单状态
        /// </summary>
        internal string OrderStateCode { get; set; }

        public MaterialProcessState OrderState
        {
            get
            {
                return (MaterialProcessState)Enum.Parse(typeof(MaterialProcessState), this.OrderStateCode);
            }
        }

        #endregion
    }
}
